package com.code.day07.Streamsdy;

import java.util.ArrayList;
import java.util.stream.Stream;

public class DemoStream2 {
    public static void main(String[] args) {
        Stream<Integer> stream = Stream.of(1, 2, 3);
        stream.forEach(System.out::println); //只能调用一次
    }
}
